{"ast":null,"code":"import _defineProperty from \"/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\nimport { genComponentStyleHook, mergeToken } from '../../theme/internal';\nimport genLayoutLightStyle from './light';\nvar genLayoutStyle = function genLayoutStyle(token) {\n  var _Object$assign;\n  var antCls = token.antCls,\n    componentCls = token.componentCls,\n    colorText = token.colorText,\n    colorTextLightSolid = token.colorTextLightSolid,\n    colorBgHeader = token.colorBgHeader,\n    colorBgBody = token.colorBgBody,\n    colorBgTrigger = token.colorBgTrigger,\n    layoutHeaderHeight = token.layoutHeaderHeight,\n    layoutHeaderPaddingInline = token.layoutHeaderPaddingInline,\n    layoutHeaderColor = token.layoutHeaderColor,\n    layoutFooterPadding = token.layoutFooterPadding,\n    layoutTriggerHeight = token.layoutTriggerHeight,\n    layoutZeroTriggerSize = token.layoutZeroTriggerSize,\n    motionDurationMid = token.motionDurationMid,\n    motionDurationSlow = token.motionDurationSlow,\n    fontSize = token.fontSize,\n    borderRadius = token.borderRadius;\n  return _defineProperty({}, componentCls, Object.assign(Object.assign((_Object$assign = {\n    display: 'flex',\n    flex: 'auto',\n    flexDirection: 'column',\n    /* fix firefox can't set height smaller than content on flex item */\n    minHeight: 0,\n    background: colorBgBody,\n    '&, *': {\n      boxSizing: 'border-box'\n    }\n  }, _defineProperty(_Object$assign, \"&\".concat(componentCls, \"-has-sider\"), _defineProperty({\n    flexDirection: 'row'\n  }, \"> \".concat(componentCls, \", > \").concat(componentCls, \"-content\"), {\n    // https://segmentfault.com/a/1190000019498300\n    width: 0\n  })), _defineProperty(_Object$assign, \"\".concat(componentCls, \"-header, &\").concat(componentCls, \"-footer\"), {\n    flex: '0 0 auto'\n  }), _defineProperty(_Object$assign, \"\".concat(componentCls, \"-header\"), _defineProperty({\n    height: layoutHeaderHeight,\n    paddingInline: layoutHeaderPaddingInline,\n    color: layoutHeaderColor,\n    lineHeight: \"\".concat(layoutHeaderHeight, \"px\"),\n    background: colorBgHeader\n  }, \"\".concat(antCls, \"-menu\"), {\n    lineHeight: 'inherit'\n  })), _defineProperty(_Object$assign, \"\".concat(componentCls, \"-footer\"), {\n    padding: layoutFooterPadding,\n    color: colorText,\n    fontSize: fontSize,\n    background: colorBgBody\n  }), _defineProperty(_Object$assign, \"\".concat(componentCls, \"-content\"), {\n    flex: 'auto',\n    // fix firefox can't set height smaller than content on flex item\n    minHeight: 0\n  }), _defineProperty(_Object$assign, \"\".concat(componentCls, \"-sider\"), {\n    position: 'relative',\n    // fix firefox can't set width smaller than content on flex item\n    minWidth: 0,\n    background: colorBgHeader,\n    transition: \"all \".concat(motionDurationMid),\n    '&-children': _defineProperty({\n      height: '100%',\n      // Hack for fixing margin collapse bug\n      // https://github.com/ant-design/ant-design/issues/7967\n      // solution from https://stackoverflow.com/a/33132624/3040605\n      marginTop: -0.1,\n      paddingTop: 0.1\n    }, \"\".concat(antCls, \"-menu\").concat(antCls, \"-menu-inline-collapsed\"), {\n      width: 'auto'\n    }),\n    '&-has-trigger': {\n      paddingBottom: layoutTriggerHeight\n    },\n    '&-right': {\n      order: 1\n    },\n    '&-trigger': {\n      position: 'fixed',\n      bottom: 0,\n      zIndex: 1,\n      height: layoutTriggerHeight,\n      color: colorTextLightSolid,\n      lineHeight: \"\".concat(layoutTriggerHeight, \"px\"),\n      textAlign: 'center',\n      background: colorBgTrigger,\n      cursor: 'pointer',\n      transition: \"all \".concat(motionDurationMid)\n    },\n    '&-zero-width': {\n      '> *': {\n        overflow: 'hidden'\n      },\n      '&-trigger': {\n        position: 'absolute',\n        top: layoutHeaderHeight,\n        insetInlineEnd: -layoutZeroTriggerSize,\n        zIndex: 1,\n        width: layoutZeroTriggerSize,\n        height: layoutZeroTriggerSize,\n        color: colorTextLightSolid,\n        fontSize: token.fontSizeXL,\n        display: 'flex',\n        alignItems: 'center',\n        justifyContent: 'center',\n        background: colorBgHeader,\n        borderStartStartRadius: 0,\n        borderStartEndRadius: borderRadius,\n        borderEndEndRadius: borderRadius,\n        borderEndStartRadius: 0,\n        cursor: 'pointer',\n        transition: \"background \".concat(motionDurationSlow, \" ease\"),\n        '&::after': {\n          position: 'absolute',\n          inset: 0,\n          background: 'transparent',\n          transition: \"all \".concat(motionDurationSlow),\n          content: '\"\"'\n        },\n        '&:hover::after': {\n          // FIXME: Hardcode, but seems no need to create a token for this\n          background: \"rgba(255, 255, 255, 0.2)\"\n        },\n        '&-right': {\n          insetInlineStart: -layoutZeroTriggerSize,\n          borderStartStartRadius: borderRadius,\n          borderStartEndRadius: 0,\n          borderEndEndRadius: 0,\n          borderEndStartRadius: borderRadius\n        }\n      }\n    }\n  }), _Object$assign), genLayoutLightStyle(token)), {\n    // RTL\n    '&-rtl': {\n      direction: 'rtl'\n    }\n  }));\n};\n// ============================== Export ==============================\nexport default genComponentStyleHook('Layout', function (token) {\n  var colorText = token.colorText,\n    controlHeightSM = token.controlHeightSM,\n    controlHeight = token.controlHeight,\n    controlHeightLG = token.controlHeightLG,\n    marginXXS = token.marginXXS;\n  var layoutHeaderPaddingInline = controlHeightLG * 1.25;\n  var layoutToken = mergeToken(token, {\n    // Layout\n    layoutHeaderHeight: controlHeight * 2,\n    layoutHeaderPaddingInline: layoutHeaderPaddingInline,\n    layoutHeaderColor: colorText,\n    layoutFooterPadding: \"\".concat(controlHeightSM, \"px \").concat(layoutHeaderPaddingInline, \"px\"),\n    layoutTriggerHeight: controlHeightLG + marginXXS * 2,\n    layoutZeroTriggerSize: controlHeightLG\n  });\n  return [genLayoutStyle(layoutToken)];\n}, function (token) {\n  var colorBgLayout = token.colorBgLayout;\n  return {\n    colorBgHeader: '#001529',\n    colorBgBody: colorBgLayout,\n    colorBgTrigger: '#002140'\n  };\n});","map":{"version":3,"names":["genComponentStyleHook","mergeToken","genLayoutLightStyle","genLayoutStyle","token","antCls","componentCls","colorText","colorTextLightSolid","colorBgHeader","colorBgBody","colorBgTrigger","layoutHeaderHeight","layoutHeaderPaddingInline","layoutHeaderColor","layoutFooterPadding","layoutTriggerHeight","layoutZeroTriggerSize","motionDurationMid","motionDurationSlow","fontSize","borderRadius","Object","assign","display","flex","flexDirection","minHeight","background","boxSizing","width","height","paddingInline","color","lineHeight","padding","position","minWidth","transition","marginTop","paddingTop","paddingBottom","order","bottom","zIndex","textAlign","cursor","overflow","top","insetInlineEnd","fontSizeXL","alignItems","justifyContent","borderStartStartRadius","borderStartEndRadius","borderEndEndRadius","borderEndStartRadius","inset","content","insetInlineStart","direction","controlHeightSM","controlHeight","controlHeightLG","marginXXS","layoutToken","colorBgLayout"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/antd/es/layout/style/index.js"],"sourcesContent":["import { genComponentStyleHook, mergeToken } from '../../theme/internal';\nimport genLayoutLightStyle from './light';\nconst genLayoutStyle = token => {\n  const {\n    antCls,\n    // .ant\n    componentCls,\n    // .ant-layout\n    colorText,\n    colorTextLightSolid,\n    colorBgHeader,\n    colorBgBody,\n    colorBgTrigger,\n    layoutHeaderHeight,\n    layoutHeaderPaddingInline,\n    layoutHeaderColor,\n    layoutFooterPadding,\n    layoutTriggerHeight,\n    layoutZeroTriggerSize,\n    motionDurationMid,\n    motionDurationSlow,\n    fontSize,\n    borderRadius\n  } = token;\n  return {\n    [componentCls]: Object.assign(Object.assign({\n      display: 'flex',\n      flex: 'auto',\n      flexDirection: 'column',\n      /* fix firefox can't set height smaller than content on flex item */\n      minHeight: 0,\n      background: colorBgBody,\n      '&, *': {\n        boxSizing: 'border-box'\n      },\n      [`&${componentCls}-has-sider`]: {\n        flexDirection: 'row',\n        [`> ${componentCls}, > ${componentCls}-content`]: {\n          // https://segmentfault.com/a/1190000019498300\n          width: 0\n        }\n      },\n      [`${componentCls}-header, &${componentCls}-footer`]: {\n        flex: '0 0 auto'\n      },\n      [`${componentCls}-header`]: {\n        height: layoutHeaderHeight,\n        paddingInline: layoutHeaderPaddingInline,\n        color: layoutHeaderColor,\n        lineHeight: `${layoutHeaderHeight}px`,\n        background: colorBgHeader,\n        // Other components/menu/style/index.less line:686\n        // Integration with header element so menu items have the same height\n        [`${antCls}-menu`]: {\n          lineHeight: 'inherit'\n        }\n      },\n      [`${componentCls}-footer`]: {\n        padding: layoutFooterPadding,\n        color: colorText,\n        fontSize,\n        background: colorBgBody\n      },\n      [`${componentCls}-content`]: {\n        flex: 'auto',\n        // fix firefox can't set height smaller than content on flex item\n        minHeight: 0\n      },\n      [`${componentCls}-sider`]: {\n        position: 'relative',\n        // fix firefox can't set width smaller than content on flex item\n        minWidth: 0,\n        background: colorBgHeader,\n        transition: `all ${motionDurationMid}`,\n        '&-children': {\n          height: '100%',\n          // Hack for fixing margin collapse bug\n          // https://github.com/ant-design/ant-design/issues/7967\n          // solution from https://stackoverflow.com/a/33132624/3040605\n          marginTop: -0.1,\n          paddingTop: 0.1,\n          [`${antCls}-menu${antCls}-menu-inline-collapsed`]: {\n            width: 'auto'\n          }\n        },\n        '&-has-trigger': {\n          paddingBottom: layoutTriggerHeight\n        },\n        '&-right': {\n          order: 1\n        },\n        '&-trigger': {\n          position: 'fixed',\n          bottom: 0,\n          zIndex: 1,\n          height: layoutTriggerHeight,\n          color: colorTextLightSolid,\n          lineHeight: `${layoutTriggerHeight}px`,\n          textAlign: 'center',\n          background: colorBgTrigger,\n          cursor: 'pointer',\n          transition: `all ${motionDurationMid}`\n        },\n        '&-zero-width': {\n          '> *': {\n            overflow: 'hidden'\n          },\n          '&-trigger': {\n            position: 'absolute',\n            top: layoutHeaderHeight,\n            insetInlineEnd: -layoutZeroTriggerSize,\n            zIndex: 1,\n            width: layoutZeroTriggerSize,\n            height: layoutZeroTriggerSize,\n            color: colorTextLightSolid,\n            fontSize: token.fontSizeXL,\n            display: 'flex',\n            alignItems: 'center',\n            justifyContent: 'center',\n            background: colorBgHeader,\n            borderStartStartRadius: 0,\n            borderStartEndRadius: borderRadius,\n            borderEndEndRadius: borderRadius,\n            borderEndStartRadius: 0,\n            cursor: 'pointer',\n            transition: `background ${motionDurationSlow} ease`,\n            '&::after': {\n              position: 'absolute',\n              inset: 0,\n              background: 'transparent',\n              transition: `all ${motionDurationSlow}`,\n              content: '\"\"'\n            },\n            '&:hover::after': {\n              // FIXME: Hardcode, but seems no need to create a token for this\n              background: `rgba(255, 255, 255, 0.2)`\n            },\n            '&-right': {\n              insetInlineStart: -layoutZeroTriggerSize,\n              borderStartStartRadius: borderRadius,\n              borderStartEndRadius: 0,\n              borderEndEndRadius: 0,\n              borderEndStartRadius: borderRadius\n            }\n          }\n        }\n      }\n    }, genLayoutLightStyle(token)), {\n      // RTL\n      '&-rtl': {\n        direction: 'rtl'\n      }\n    })\n  };\n};\n// ============================== Export ==============================\nexport default genComponentStyleHook('Layout', token => {\n  const {\n    colorText,\n    controlHeightSM,\n    controlHeight,\n    controlHeightLG,\n    marginXXS\n  } = token;\n  const layoutHeaderPaddingInline = controlHeightLG * 1.25;\n  const layoutToken = mergeToken(token, {\n    // Layout\n    layoutHeaderHeight: controlHeight * 2,\n    layoutHeaderPaddingInline,\n    layoutHeaderColor: colorText,\n    layoutFooterPadding: `${controlHeightSM}px ${layoutHeaderPaddingInline}px`,\n    layoutTriggerHeight: controlHeightLG + marginXXS * 2,\n    layoutZeroTriggerSize: controlHeightLG\n  });\n  return [genLayoutStyle(layoutToken)];\n}, token => {\n  const {\n    colorBgLayout\n  } = token;\n  return {\n    colorBgHeader: '#001529',\n    colorBgBody: colorBgLayout,\n    colorBgTrigger: '#002140'\n  };\n});"],"mappings":";AAAA,SAASA,qBAAqB,EAAEC,UAAU,QAAQ,sBAAsB;AACxE,OAAOC,mBAAmB,MAAM,SAAS;AACzC,IAAMC,cAAc,GAAG,SAAjBA,cAAc,CAAGC,KAAK,EAAI;EAAA;EAC9B,IACEC,MAAM,GAmBJD,KAAK,CAnBPC,MAAM;IAENC,YAAY,GAiBVF,KAAK,CAjBPE,YAAY;IAEZC,SAAS,GAePH,KAAK,CAfPG,SAAS;IACTC,mBAAmB,GAcjBJ,KAAK,CAdPI,mBAAmB;IACnBC,aAAa,GAaXL,KA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